Error and Status Codes
This document helps in understanding 'how error messages are structured and see all available error codes' returned by Sinch India WhatsApp API.
Case 1:-
When MSISDN is not present:
{
"success": "false",
"description": [
{
"errorCode": "invalid_msisdn",
"errorDescription": "INVALID MSISDN"
}
]
}
Case 2:-
Enterprise has subscribed to the 'User Consent' feature, but MSISDN is not Opted In. Hence, Enterprise will get below error:
{
"success": "false",
"description": [
{
"errorCode": "24",
"errorDescription": "OPTIN BLOCKED"
}
]
}
Case 3:-
Enterprise has subscribed to the 'User Consent' feature, but MSIDDN is Opted Out. Hence, Enterprise will get below error:
{
"success": "false",
"description": [
{
"errorCode": "24",
"errorDescription": "OPTOUT BLOCKED"
}
]
}
Case 4:-
Message request body is not in prescribed format and processing has been failed during transcoding:
{
"success": "false",
"description": [
{
"errorCode": "message.transcode.failed",
"errorDescription": "Message transcoding failed"
}
]
}
Note: Case 4 is applicable for Legacy version only.